#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"

// unit test for the great hall card.
int main() {
	struct gameState G;
	int r;

	int k[10] = {adventurer, gardens, embargo, village, minion, mine, 
			cutpurse, treasure_map, tribute, smithy};


	r = initializeGame(4, k, 1, &G);
	assert(r == 0);

	assert(G.handCount[0] == 5);

	cardEffect(great_hall, 0, 0, 0, &G, 0, 0);

	assert(G.handCount[0] == 5);
	printf("Draw card works.\n");

	if(G.hand[0][5] == 0){
		printf("Discard works.\n");
	} else {
		printf("Discard doesn't work\n");
	}

	return 0;
}
